import request from "@/utils/request.js"

export const uploadAvatar = (data) => {
  return request.post('/admin/common/upload', data,
    {
      headers:
        {
          'Content-Type': 'multipart/form - data'
        }
    })
}

export const uploadCover = (data) => {
  return request.post('/admin/common/upload', data,
    {
      headers:
        {
          'Content-Type': 'multipart/form - data'
        }
    })
}

export const uploadScoreCover = (data) => {
  return request.post('/admin/common/upload', data,
    {
      headers:
        {
          'Content-Type': 'multipart/form - data'
        }
    })
}
